Regardless of environment (ultrahigh vacuum, humid air, dry nitrogen, or water), ion-beam-deposited diamondlike carbon (DLC) and nitrogen-ion-implanted, chemical-vapor-deposited (CVD) diamond films had low steady-state coefficients of friction (<0.1) and low wear rates (≤ 10−6 mm3/N·m). These films can be used as effective wear-resistant, self-lubricating coatings regardless of environment. On the other hand, as-deposited, fine-grain CVD diamond films; polished, coarse-grain CVD diamond films; and polished and then fluorinated, coarse-grain CVD diamond films can be used as effective wear-resistant, self-lubricating coatings in humid air, in dry nitrogen, and in water, but they had a high coefficient of friction and a high wear rate in ultrahigh vacuum. The polished, coarse-grain CVD diamond film revealed an extremely low wear rate, far less than 10−10 mm3/N·m, in water.